From: Roger Pau Monne Date: Mon, 9 Oct 2017 13:30:07 +0000 (+0100) Subject: xl: set default maptrack frames to 1024 X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1198 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=31609d70bacafbe98f143cb61a86966e1957df87;p=xen.git xl: set default maptrack frames to 1024 This is in line with the previous behavior, setting the number of maptrack frames to 0 will prevent driver domains from working correctly. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- diff --git a/docs/man/xl.conf.pod.5 b/docs/man/xl.conf.pod.5 index fe2cf27ea4..da91b8626c 100644 --- a/docs/man/xl.conf.pod.5 +++ b/docs/man/xl.conf.pod.5 @@ -87,7 +87,7 @@ Default: C<32> on hosts up to 16TB of memory, C<64> on hosts larger than 16TB Sets the default value for the C domain config value. -Default: C<0> +Default: C<1024> =item B diff --git a/tools/xl/xl.c b/tools/xl/xl.c index c1bbb4b939..179908b4f6 100644 --- a/tools/xl/xl.c +++ b/tools/xl/xl.c @@ -46,7 +46,7 @@ enum output_format default_output_format = OUTPUT_FORMAT_JSON; int claim_mode = 1; bool progress_use_cr = 0; int max_grant_frames = -1; -int max_maptrack_frames = 0; +int max_maptrack_frames = -1; xentoollog_level minmsglevel = minmsglevel_default; diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c index d0106f4830..084e49adee 100644 --- a/tools/xl/xl_parse.c +++ b/tools/xl/xl_parse.c @@ -1041,7 +1041,7 @@ void parse_config_data(const char *config_source, b_info->max_grant_frames = max_grant_frames; if (!xlu_cfg_get_long (config, "max_maptrack_frames", &l, 0)) b_info->max_maptrack_frames = l; - else + else if (max_maptrack_frames != -1) b_info->max_maptrack_frames = max_maptrack_frames; libxl_defbool_set(&b_info->claim_mode, claim_mode);